feat: add font scale widget for reader-adjustable text sizing#31
feat: add font scale widget for reader-adjustable text sizing#31thisisavs wants to merge 1 commit intonicobailon:mainfrom
Conversation
Adds a fixed-position font scale widget (bottom-right corner) with 4 size presets (Compact 0.9x, Default 1x, Large 1.12x, XL 1.25x) that every visual-explainer page should include. The widget scales the root font-size, so all text must use rem units to scale proportionally. User preference persists via localStorage across page refreshes. This improves accessibility and accommodates different screen sizes and reading preferences without requiring the user to use browser zoom. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Thanks for the contribution. The idea is reasonable but the implementation has a fundamental issue: the skill's entire design system is built on Beyond that: the hardcoded |
Summary
localStorageacross page refreshesremunit requirement so all text scales proportionallyMotivation
Visual explainer pages are information-dense and viewed on a wide range of screens -- from laptops to large monitors to projected displays. Browser zoom works but scales everything including layout. This widget scales only text, preserving the page layout while letting readers pick a comfortable reading size.
It also improves accessibility for users who prefer larger text without requiring them to change system or browser settings.
What changed
plugins/visual-explainer/SKILL.md-- added a new## Font Scale Widgetsection (82 lines) between the Style/Deliver sections and Diagram Types, containing:remunits for compatibilityNo changes to templates, references, or other files.
Preview
The widget renders as a small
A A A Abutton cluster in the bottom-right corner, styled with the page's own theme variables (--surface,--border-bright,--accent-dim). Each "A" is progressively larger to visually communicate the scale.Generated with Claude Code